package org.example.elmfront.mapper;


import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.elmfront.entity.User;


@Mapper
public interface UserMapper {

    // 根据用户名查询用户信息
    @Select("SELECT * FROM users WHERE username = #{username}")
    User findByUsername(String username);

    void insertUser(User user);
}
